#include <iostream>
#include <gtest/gtest.h>
#include <vector>
class MyEnvironment: public testing::Test{
public:
    static void SetUpTestCase(){
        std::cout << "单元测试环境初始化\n";
    }
    virtual void SetUp() override{
        std::cout << "SetUp" << std::endl;
    }
    virtual void TearDown() override{
        std::cout << "TearDown" << std::endl;
    }
    static void TearDownTestCase(){
        std::cout << "单元测试环境清理\n"; 
    }
public:
    std::vector<int> v;
};

TEST_F(MyEnvironment, 1){
    v.push_back(1);
    ASSERT_LE(v.size(), 0);
}
TEST_F(MyEnvironment, 2){
    ASSERT_LE(v.size(), 0);
}

int main(int argc, char* argv[])
{
    testing::InitGoogleTest(&argc, argv);
    RUN_ALL_TESTS();
    return 0;
}